import appendNum from "./page/appendNum";
import { NumberTimer } from "./util/number";

const n = new NumberTimer(500, 1);
n.onNumberCreated = (num, isPrime) => {
  appendNum(num, isPrime);
};

window.onclick = function () {
  if (!!n.timer) {
    n.stop();
  } else {
    n.start();
  }
};
